1 from oxsConfig
import ttk
, W
, E
, fFrsky
, frskyVfasVar
, frskyFuelVar
, frskyA3Var
, frskyA4Var
, \
2 frskyAccxVar
, frskyAccyVar
, frskyAcczVar
, frskyT1Var
, frskyT2Var
4 #here start the definition of the FRSKY tab
5 ttk
.Label(fFrsky
, text
="VFAS" ).grid(column
= 0, row
=1, padx
= (15,5), pady
=(25,5) , sticky
=(E
))
6 frskyVfasBox
= ttk
.Combobox(fFrsky
, textvariable
=frskyVfasVar
,
7 values
=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'ADS_VOLT_1',
8 'ADS_VOLT_2', 'ADS_VOLT_3', 'ADS_VOLT_4' ),
10 frskyVfasBox
.grid(column
=1, row
=1, pady
=(25,5) ,sticky
=(W
) )
11 ttk
.Label(fFrsky
, text
="Fuel" ).grid(column
= 0, row
=2, padx
= (15,5), pady
=5 , sticky
=(E
))
12 frskyFuelBox
= ttk
.Combobox(fFrsky
, textvariable
=frskyFuelVar
,
13 values
=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'ADS_VOLT_1',
14 'ADS_VOLT_2', 'ADS_VOLT_3', 'ADS_VOLT_4' ),
16 frskyFuelBox
.grid(column
=1, row
=2, sticky
=(W
) )
17 ttk
.Label(fFrsky
, text
="A3" ).grid(column
= 0, row
=3, padx
= (15,5), pady
=5 , sticky
=(E
))
18 frskyA3Box
= ttk
.Combobox(fFrsky
, textvariable
=frskyA3Var
,
19 values
=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'ADS_VOLT_1',
20 'ADS_VOLT_2', 'ADS_VOLT_3', 'ADS_VOLT_4' ),
22 frskyA3Box
.grid(column
=1, row
=3, sticky
=(W
) )
23 ttk
.Label(fFrsky
, text
="A4" ).grid(column
= 0, row
=4, padx
= (15,5), pady
=5 , sticky
=(E
))
24 frskyA4Box
= ttk
.Combobox(fFrsky
, textvariable
=frskyA4Var
,
25 values
=('Not sent','VOLT_1', 'VOLT_2', 'VOLT_3' , 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'ADS_VOLT_1',
26 'ADS_VOLT_2', 'ADS_VOLT_3', 'ADS_VOLT_4' ),
28 frskyA4Box
.grid(column
=1, row
=4, sticky
=(W
) )
30 ttk
.Label(fFrsky
, text
="Acc X" ).grid(column
= 0, row
=5, padx
= (15,5), pady
=5 , sticky
=(E
))
31 frskyAccxBox
= ttk
.Combobox(fFrsky
, textvariable
=frskyAccxVar
,
32 values
=('Not sent','TEST_1', 'TEST_2', 'TEST_3', 'GLIDER_RATIO' , 'SECONDS_SINCE_T0'
33 ,'AVERAGE_VSPEED_SINCE_TO' , 'VOLT_1', 'VOLT_2', 'VOLT_3', 'VOLT_4', 'VOLT_5'
34 , 'VOLT_6', 'PITCH', 'ROLL', 'YAW', 'ADS_VOLT_1', 'ADS_VOLT_2', 'ADS_VOLT_3', 'ADS_VOLT_4' ),
35 state
="readonly" , width
=30)
36 frskyAccxBox
.grid(column
=1, row
=5, sticky
=(W
) )
37 ttk
.Label(fFrsky
, text
="Acc Y" ).grid(column
= 0, row
=6, padx
= (15,5), pady
=5 , sticky
=(E
))
38 frskyAccyBox
= ttk
.Combobox(fFrsky
, textvariable
=frskyAccyVar
,
39 values
=('Not sent','TEST_1', 'TEST_2', 'TEST_3', 'GLIDER_RATIO' , 'SECONDS_SINCE_T0'
40 ,'AVERAGE_VSPEED_SINCE_TO' , 'VOLT_1', 'VOLT_2', 'VOLT_3', 'VOLT_4', 'VOLT_5'
41 , 'VOLT_6', 'PITCH', 'ROLL', 'YAW', 'ADS_VOLT_1', 'ADS_VOLT_2', 'ADS_VOLT_3', 'ADS_VOLT_4' ),
42 state
="readonly" , width
=30)
43 frskyAccyBox
.grid(column
=1, row
=6, sticky
=(W
) )
44 ttk
.Label(fFrsky
, text
="Acc Z" ).grid(column
= 0, row
=7, padx
= (15,5), pady
=5 , sticky
=(E
))
45 frskyAcczBox
= ttk
.Combobox(fFrsky
, textvariable
=frskyAcczVar
,
46 values
=('Not sent','TEST_1', 'TEST_2', 'TEST_3', 'GLIDER_RATIO' , 'SECONDS_SINCE_T0'
47 ,'AVERAGE_VSPEED_SINCE_TO' , 'VOLT_1', 'VOLT_2', 'VOLT_3', 'VOLT_4', 'VOLT_5'
48 , 'VOLT_6', 'PITCH', 'ROLL', 'YAW', 'ADS_VOLT_1', 'ADS_VOLT_2', 'ADS_VOLT_3', 'ADS_VOLT_4' ),
49 state
="readonly" , width
=30)
50 frskyAcczBox
.grid(column
=1, row
=7, sticky
=(W
) )
51 ttk
.Label(fFrsky
, text
="T1" ).grid(column
= 0, row
=8, padx
= (15,5), pady
=5 , sticky
=(E
))
52 frskyT1Box
= ttk
.Combobox(fFrsky
, textvariable
=frskyT1Var
,
53 values
=('Not sent','TEST_1', 'TEST_2', 'TEST_3', 'GLIDER_RATIO' , 'SECONDS_SINCE_T0'
54 ,'AVERAGE_VSPEED_SINCE_TO' ,'SENSITIVITY' , 'PPM', 'VOLT_1', 'VOLT_2', 'VOLT_3',
55 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'ADS_VOLT_1', 'ADS_VOLT_2', 'ADS_VOLT_3', 'ADS_VOLT_4' ),
56 state
="readonly" , width
=30)
57 frskyT1Box
.grid(column
=1, row
=8, sticky
=(W
) )
58 ttk
.Label(fFrsky
, text
="T2" ).grid(column
= 0, row
=9, padx
= (15,5), pady
=5 , sticky
=(E
))
59 frskyT2Box
= ttk
.Combobox(fFrsky
, textvariable
=frskyT2Var
,
60 values
=('Not sent','TEST_1', 'TEST_2', 'TEST_3', 'GLIDER_RATIO' , 'SECONDS_SINCE_T0'
61 ,'AVERAGE_VSPEED_SINCE_TO' ,'SENSITIVITY' , 'PPM', 'VOLT_1', 'VOLT_2', 'VOLT_3',
62 'VOLT_4', 'VOLT_5' , 'VOLT_6', 'ADS_VOLT_1', 'ADS_VOLT_2', 'ADS_VOLT_3', 'ADS_VOLT_4' ),
63 state
="readonly" , width
=30)
64 frskyT2Box
.grid(column
=1, row
=9, sticky
=(W
) )